package com.hvgroup.modules.sanic.repository;

import com.hvgroup.modules.sanic.domain.po.LlmDatasetsTpml;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface LlmDatasetsTpmlRepository extends JpaRepository<LlmDatasetsTpml, Long>, JpaSpecificationExecutor<LlmDatasetsTpml> {

    List<LlmDatasetsTpml> findAllByDatasetsId(Long datasetsId);

    Page<LlmDatasetsTpml> findAllByDatasetsId(String datasetsId, Pageable pageable);

    Page<LlmDatasetsTpml> findAllByDocNameLikeAndDatasetsId(String datasetsName, String datasetsId, Pageable pageable);

}

